package com.example.javabasic.thread.classtwo.threadlocal.demo2;

import javax.management.Query;

public class ExecutionTask implements Runnable {

    private QueryAction queryAction = new QueryAction();
    private HttpAction httpAction = new HttpAction();
    @Override
    public void run() {
        Context context = new Context();
        queryAction.execute(context);
        System.out.println("query查询成功");
        httpAction.execute(context);
        System.out.println("http查询成功");
        System.out.println("http  is->"+context.getHttp());
        System.out.println("name  is->"+context.getName());

    }
}
